package com.itheima.controller;
import com.alibaba.dubbo.config.annotation.Reference;
import com.itheima.service.Service;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping("in")
public class Controllerr {
    @Reference

    private Service service;
    @RequestMapping("/all")
    @ResponseBody
    public String method(String name){
        String method = service.method(name);
        System.out.println(method);
        return method;
    }
}
